package com.bm.jarquickstart.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.File;
import java.util.UUID;

/**
 * @author 港某
 * @datetime 2021/4/27 10:10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Files {

    private String objId;
    private File file;

    public Files(File file) {
        this.objId = UUID.randomUUID().toString();
        this.file = file;
    }

}
